home *** CD-ROM | disk | FTP | other *** search
/ Softwarová Záchrana 3 / Softwarova-zachrana-3.bin / Xteq X-Setup / xqdcXSP-Setup-EN.exe / {app} / plugins / XQ Direct Draw 3.xpl < prev    next >
Text File  |  2003-11-19  |  2KB  |  50 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 6.0"
  2. "TYPE"="6"
  3. "COUNT"="1"
  4. "UIPATH"="Program Options\Built in Windows Apps\DirectX"
  5. "NAME"="Direct Draw 3"
  6. "VERSION"="1.04"
  7. "OSVERSION"="1011111"
  8. "LANGUAGE"="VBScript"
  9. "TEXT 1"="ForceRefreshRate"
  10. "WARNING"="1"
  11. "DESCRIPTION 1"="!!!WARNING!!!"
  12. "DESCRIPTION 2"="Forces [hex number: 60 - 300 decimal in Hz (100 Hz used in this example)] custom 2D (and 3D if supported by the video card) video Refresh Rate (redraw vertical frequency) for BOTH the multi-scan CRT monitor AND the graphics accelerator in current video mode [1024x768 in 65,000 colors (16-bit) used here]. Note that selected frequency MUST be supported by BOTH video card AND monitor, otherwise you may damage one or the other! That's why it is VERY IMPORTANT to select the appropriate monitor type in: Control Panel -> System applet -> Device Manager tab -> Monitors -> Your Monitor Name -> Driver tab -> Update Driver...!."
  13. "DESCRIPTION 3"="!!!WARNING!!!
  14. "AUTHOR"="Ojatex@aol.com"
  15. "CONTACTURL"="http://members.aol.com/ojatex/"
  16. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  17. "COMMENT 1"=" "
  18. "COMMENT 2"="These tweaks for Direct Draw courtesy of Axcel216@aol.com. See http://users.aol.com/axcel216/newtip18.htm#DXTWK."
  19.  
  20.  
  21. Sub Plugin_Initialize 
  22.  i=RegReadValue("HKLM\Software\Microsoft\DirectDraw\ForceRefreshRate")
  23.  if i=1 then SetUIElement 1,true
  24. End Sub
  25.  
  26.  
  27. Sub Plugin_CheckData(ElementIndex)
  28. End Sub
  29.  
  30.  
  31.  
  32. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  33.  b=GetUIElement(1)
  34.  if b=true then
  35.   Call RegWriteValue("HKLM\Software\Microsoft\DirectDraw\ForceRefreshRate","100",2)
  36.  else
  37.   Call RegWriteValue("HKLM\Software\Microsoft\DirectDraw\ForceRefreshRate","0",2)
  38.  end if
  39.  
  40.  
  41.  
  42. End Sub
  43.  
  44.  
  45. Sub Plugin_Terminate 
  46. End Sub
  47.  
  48.  
  49.  
  50.